package com.htfyun.eink.pw.core;

import android.content.Context;

public interface IEinkManager {

    /**
     * 初始 manager
     *
     * @param context 由于 sdk 的 manager 是需要通过 context.getSystemService(Context.EINK_SERVICE)获取
     */
    void initManager(Context context);

    /**
     * @param afterWindowHide true, refresh now, update data.
     * @param reserved        0, afterWindowHide: true, refresh when some window hide; false: refresh next<br>
     *                        1, afterWindowHide false, refresh now,don't update data;
     */
    void screenRefresh(boolean afterWindowHide, int reserved);

    /**
     * set current screen rotation,
     *
     * @param rotation 0-90-180-270.
     */
    void setScreenRotation(int rotation);

    void sendHwcCmd(int cmd, int[] param);
}
